<script>
    import store from '../store/store.js'
    export default {
        setup(props,context){
            const add = ()=>{
                store.count++;
            }

            const sub = ()=>{
                store.count--;
            }

            return {
                store,
                add,
                sub
            }
        }
    }
</script>

<template>
    <div>
        {{store.count}}
        <button @click="add">+</button>
        <button @click="sub">-</button>
    </div>
</template>

<style>

</style>